package cn.lg.org.service;

import cn.lg.basic.util.PageList;
import cn.lg.org.domain.Department;
import cn.lg.org.query.DepartmentQuery;

import java.util.List;

/**
 * 部门service接口
 */
public interface IDepartmentService {
    /**
     * 查询所有
     * @return
     */
    List<Department> queryAll();

    /**
     *
     * 查询单个@param id
     * @return
     */
    Department queryById(Long id);

    /**
     * 保存对象
     * @param department
     */
    void save(Department department);

    /**
     * 修改对象
     * @param department
     */
    void update(Department department);

    /**
     * 移除对象
     * @param id
     */
    void remove(Long id);

    /**
     * 分页查询
     * @param departmentQuery
     * @return
     */
    PageList<Department> queryData(DepartmentQuery departmentQuery);

    /**
     * 批量删除
     * @param ids
     */
    void patchRemove(List<Long> ids);

    /**
     * 查询无极限部门树
     * @return
     */
    List<Department> queryTree();
}
